home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000203_news@newsmaster….columbia.edu _Wed Aug 20 13:01:17 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA04091
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 20 Aug 1997 13:01:17 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA18123
for kermit.misc@watsun; Wed, 20 Aug 1997 13:01:16 -0400 (EDT)
Path: news.columbia.edu!panix!news.eecs.umich.edu!nntprelay.mathworks.com!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsxfer3.itd.umich.edu!oleane!calvacom!not-for-mail
From: do11@calva.net (Dominique Ottello)
Newsgroups: comp.protocols.kermit.misc
Subject: Problem with IF NUMERIC between 3.14 and 3.15
Date: Wed, 20 Aug 1997 17:01:55 GMT
Organization: PCatHome&Me
Lines: 43
Message-ID: <33fb02f2.277916@news.calvacom.fr>
Reply-To: do11@calva.net
NNTP-Posting-Host: parb17.calvacom.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.5/32.451
Xref: news.columbia.edu comp.protocols.kermit.misc:7515
One more time : Hello from France.
The take file hereunder is able to test a keyboard data input to see if the
data is defined (not only return key), numeric and between lower and upper
limits.
Under MS-DOS Kermit 3.14 :
inputs with unary operators + or - are seen as not numeric.
(The documentation says that only digits 0..9 are accepted)
Under MS-DOS Kermit 3.15 :
inputs need to have unary operators + or -
Any data without unary operator + and with more than one numeric character
is seen as not numeric.
"5" or "+5" are both seen as numeric
"12" is seen as not numeric
"+12" is seen as numeric.
It seems that the implicit unary operator + is not taken into account.
I propose that for Kermit 3.15 "IF NUMERIC"
- accept digits 0 1 2 3 4 5 6 7 8 9
- accept unary operators + or - only in first position
- put an implicit unary operator + if there was not
Comments please.
Best regards,
:Begin
define \%e
ask \%c {Your Choice (Between 1 and 99) : }
if not defined \%c define \%e undefined
if not defined \%e if not numeric \%c define \%e not numeric
if not defined \%e if < \%c 1 define \%e too low
if not defined \%e if > \%c 99 define \%e too high
if not defined \%e goto Fin
echo {\7Error : your answer (\%c) is \%e\7}
pause 2
goto Begin
:Fin
== Dominique Ottello == do11@calva.net == Paris == France ==